﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Windows.Forms;
using System.Threading;
using System.Timers;


namespace WinMonitoringAgent
{
   public class ConsoleApplication
       
    {
       System.Timers.Timer timer1 = new System.Timers.Timer();
        public ConsoleApplication(string applicationPath, bool consoleMode)
        {
            timer1.Elapsed += new ElapsedEventHandler(timer1_Elapsed);
            timer1.Interval = 60000;
            timer1.Enabled = true;
            timer1.Start();
        }
        private void timer1_Elapsed(object sender, EventArgs e)
        { 
                        MonitorConsole _agent = new MonitorConsole();
                        _agent.SendStatus();
                       
                    }
              
        public void Close()
        {
           

        }

        }
    }


            
 


